<script src="../../resources/dump-as-markup.js"></script>
<body>
<script>
var range = document.createRange();
range.selectNode(document.head);
var documentFragment = range.createContextualFragment("<title>hi</title><style></style><body>XXX<div>ttt</div></body>");
document.head.appendChild(documentFragment);
</script>
</body>
